/**
 * 
 */
package com.etc.user.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.etc.entity.Comment;
import com.etc.user.dao.CommentMapper;
import com.etc.user.service.CommentService;
import com.etc.util.PageData;

/**
 * @author afrian
 *
 * date: 2019年4月30日  早上10点
 */
@Repository(value = "commentService")
public class CommentServiceImpl implements CommentService {

	@Resource(name = "commentMapper")
	private CommentMapper commentMapper;

	@Override
	public boolean addComment(Comment comment) {
	if(comment==null) {
		return false;
	}
		return commentMapper.addComment(comment)>0;
	}

	@Override
	public boolean insert(Comment record) {
		// TODO Auto-generated method stub
		if(record==null) {
			return false;
		}
			return commentMapper.insert(record)>0;
	}

	@Override
	public boolean insertSelective(Comment record) {
		// TODO Auto-generated method stub
		if(record==null) {
			return false;
		}
			return commentMapper.insertSelective(record)>0;
	}

	



}
